idate
Format l'heure / date locale comme entier
idate()
formate l'heure / date locale en tant qu'entier.
Remarque: la fonction idate()
n'accepte qu'un seul caractère comme paramètre de format !
Format l'heure / date locale comme entier. Testez tous les différents formats:
<? Php Echo Idate ( "B" ) . "<br>" ; Echo Idate ( "D" ) . "<br>" ; Echo Idate ( "H" ) . "<br>" ; Echo Idate ( "H" ) . "<br>" ; Echo Idate ( "I" ) . "<br>" ; Echo Idate ( "I" ) . "<br>" ; Echo Idate ( "L" ) . "<br>" ; Echo Idate ( "M" ) . "<br>" ; Echo Idate ( "S" ) . "<br>" ; Echo Idate ( "T" ) . "<br>" ; Echo Idate ( "u" ) . "<br>" ; Echo Idate ( "W" ) . "<br>" ; Echo Idate ( "W" ) . "<br>" ; Echo Idate ( "Y" ) . "<br>" ; Echo Idate ( "Y" ) . "<br>" ; Echo Idate ( "Z" ) . "<br>" ; Echo Idate ( "Z" ) . "<br>" ; ?>
Essayez-le vous-même
IDate ( format , horodatage ) ;
paramètre | décrire |
---|---|
format |
Requis. Spécifie comment renvoyer le résultat:
|
horodatage | Facultatif. Spécifie un horodatage Unix qui représente la date / l'heure qui doit être formatée. La valeur par défaut est l'heure locale actuelle (time ()). |